From: Olaf Hering Date: Fri, 1 Jun 2012 11:06:22 +0000 (+0100) Subject: libxl: fix typos in libxl_cpuid_parse_config X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8352 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=bff8880f2271ad07e24896db500ab9aa5a8c3c02;p=xen.git libxl: fix typos in libxl_cpuid_parse_config Fix typo in comment. Fix cpuid_flags array init, use correct number of arguments for empty array entry. Signed-off-by: Olaf Hering Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl_cpuid.c b/tools/libxl/libxl_cpuid.c index ff7531f0cc..d17fdd670a 100644 --- a/tools/libxl/libxl_cpuid.c +++ b/tools/libxl/libxl_cpuid.c @@ -185,7 +185,7 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"svm_decode", 0x8000000a, NA, CPUID_REG_EDX, 7, 1}, {"svm_pausefilt",0x8000000a, NA, CPUID_REG_EDX, 10, 1}, - {NULL, 0, CPUID_REG_INV, 0, 0} + {NULL, 0, NA, CPUID_REG_INV, 0, 0} }; #undef NA char *sep, *val, *endptr; @@ -216,7 +216,7 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) num = strtoull(val, &endptr, 0); flags[flag->length] = 0; if (endptr != val) { - /* is this was a valid number, write the binary form into the string */ + /* if this was a valid number, write the binary form into the string */ for (i = 0; i < flag->length; i++) { flags[flag->length - 1 - i] = "01"[!!(num & (1 << i))]; }